package com.hui10.mediaplayer.base

/**
 * Author: Created by lucus on 2019/5/30.
 * E-mail: mcphilex1989@gmail.com
 * Tel: 15652608401
 */
open class BasePresenter<RESPONSE>(var baseView: BaseView<RESPONSE>?) {

    companion object {
        const val DATA_INIT_OR_REFRESH = 1
        const val DATA_LOAD_MORE = 2
    }

    open fun loadData(type: Int) {}

    open fun loadMoreData(type: Int, offset: Int) {}

    open fun onDestroyView() {
        if (baseView != null) {
            baseView = null
        }
    }
}